<ul class="nav nav-tabs">
  <li <%= 'class=active' if show_tab == :index %>>
    <%= link_to send("#{model_nav_name.to_s.pluralize}_path") do %>
        <i class="blue icon-th-list"></i> <%= t 'common.list' %>
    <% end %>
  </li>
  <% if [:index,  :new].include?(show_tab)  %>
      <li <%= 'class=active' if show_tab == :new %>>
        <%= link_to send("new_#{model_nav_name}_path"), class: pjax ? :pjax : '' do %>
            <i class="blue icon-plus"></i> <%= t 'common.new' %>
        <% end %>
      </li>
  <% else [:show, :edit].include?(show_tab) %>
      <li <%= 'class=active' if show_tab == :show %>>
        <%= link_to send("#{model_nav_name}_path"), class: :pjax do %>
            <i class="green icon-info-sign"></i> <%= t 'common.show' %>
        <% end %>
      </li>
      <li>
        <%= link_to send("new_#{model_nav_name}_path"), class: pjax ? :pjax : '' do %>
            <i class="blue icon-plus"></i> <%= t 'common.new' %>
        <% end %>
      </li>
  <% end %>
</ul>